<template>
	<view class="announcementDetail">
		<view class="title">
			{{pageData.title}}
		</view>
		<image v-if="pageData.image" :src="pageData.image" mode="aspectFit"
			style="width: 670rpx; height: 300rpx;border-radius: 20rpx;margin-top: 20rpx;"></image>
		<view class="contentn">
			<u-parse :content="pageData.content"></u-parse>
		</view>

	</view>
</template>

<script>
	import {
		systemmessagedetails
	} from "@/api/api.js"
	export default {
		data() {
			return {
				pageId: "",
				pageData: {},
			}
		},
		onLoad(options) {
			this.pageId = options.id
			this.handleDetail()
		},
		methods: {
			async handleDetail() {
				let res = await systemmessagedetails({
					id: this.pageId
				})
				this.pageData = res.data
			},
		}
	}
</script>

<style scoped lang="scss">
	.announcementDetail {
		width: 100%;
		min-height: 100%;
		background-color: #ffffff;
		padding: 20rpx 40rpx;
		box-sizing: border-box;

		.title {
			font-family: PingFang SC, PingFang SC;
			font-weight: bold;
			font-size: 32rpx;
			color: #333333;
			line-height: 38rpx;
			text-align: left;
			font-style: normal;
		}

		.contentn {
			margin-top: 20rpx;
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 28rpx;
			color: #666666;
			line-height: 50rpx;
			text-align: justified;
			font-style: normal;
			text-transform: none;
		}
	}
</style>